package phoenix.web.locators.base.features;

import org.openqa.selenium.By;

/**
 * Created by AlexGolovko on 13.11.2014.
 */
public abstract class MenuLocatorsBase
{
	// User menu
	public By blockSiteLogo = By.xpath("//img[@alt='MatureDating']");
	public By btnUserAvatar = By.id("user-avatar");
	public By blockUserMenu = By.xpath("//*[@class='b-user-nav']");

	// Main menu
	public By btnMySettings = By.xpath("//div[@id='userNav']//a[@href='/#account']");
	public By btnMyProfile = By.xpath("//div[@id='userNav']//a[@href='/#profile']");
	public By btnBlocked = By.xpath("//div[@id='userNav']//a[@href='/#blocked']");
	public By btnContactUs = By.xpath("//div[@id='userNav']//a[@href='/#site/contactUs']");
	public By btnLogout = By.xpath("//div[@id='userNav']//a[@href='/site/logout']");

	// Search menu
	public By btnSearchTopMenu = By.xpath("//a[@class='site-nav-item site-nav-top-search']");
	public By btnOpenSearchDropdown = By.xpath("//*[@id='dataSearchMenu']/a");
	public By btnSearchNear = By.xpath("//a[@data-item='near_you']");
	public By btnSearchOnline = By.xpath("//a[@data-item='online']");
	public By btnSearchRecently = By.xpath("//a[@data-item='new_members']");
	public By btnSearchSubmit; // Required on MD

	// Activity menu
	public By linkActivityBrowsedMe = By.xpath("//div[@data-nav-item='views']/a");
	public By linkActivityWinkedMe = By.xpath("//div[@data-nav-item='winks']/a");
	public By linkActivityFeed = By.xpath("//div[@data-nav-item='newsFeed']/a");
	public By linkActivitySMSChat = By.xpath("//div[@data-smschatpage-page='smsChatFeed']");
	public By linkActivityClose = By.xpath("//div[@class='i-close']");
	public By linkActivityMessenger = null;
	public By linkActivityFriends = null;
	public By linkFeedDropdownMenu = null;

	// Top menu
	public By blockTopMenu = By.cssSelector(".b-nav-list");
	public By linkTopSearch = By.xpath("//a[@class='site-nav-item site-nav-top-search']");
	public By linkSMSChat = By.xpath("//span[@class='b-smschat-icon b-counter-icon']");
	public By linkTopActivity = By.xpath("//span[@class='b-action-icon b-counter-icon']");
	public By linkTopFeed = By.xpath("//span[@class='b-feed-icon b-counter-icon']");
	public By linkTopMessagedMe = By.xpath("//a[@class='site-nav-item site-nav-messenger']");
	public By btnNavigationList = By.xpath("//div[@class='site-nav-item site-nav-top-list']");
	public By linkTopMyFriends = By.xpath("//a[@class='site-nav-item site-nav-favorites']");
	public By linkTopWinkedMe = By.xpath("//a[@class='site-nav-item site-nav-winks']");
	public By linkTopBrowsedMe = By.xpath("//a[@class='site-nav-item site-nav-views']");
	public By linkTopChatRoom = By.xpath("//a[@class='site-nav-item site-nav-chatrooms']");

	// Top menu naughty mode
	public By btnNaughtyMode = By.xpath("//div[@class='widget-button']");
	public By blockNaughtyMode = By.xpath("//div[@class='naughty-widget menu-widget active']");
	public By btnNaughtyNormal = By.xpath("//div[@class='switcher-cell']/a[@data-nm-option='1']");
	public By btnNaughtySexy = By.xpath("//div[@class='switcher-cell']/a[@data-nm-option='2']");
	public By btnNaughtyHot = By.xpath("//div[@class='switcher-cell']/a[@data-nm-option='3']");
	// TODO Move to POPup locators
	public By blockNaughtyPopUpConfirm = By.xpath("//div[@class='b-popup b-restrictions b-restrictionsmale']");
	public By btnNaughtyPopUpSubmit = By.xpath("//div[@class='b-popup b-restrictions b-restrictionsmale']//input[@type='submit']");

	// Drop down
	public By blockDropDownMenu = By.xpath("//div[@class='b-dropdown-menu active']");
	public By blockDropDownMenuFeed = By.xpath("//div[@id='newsFeedActivity']");
	public By blockDropDownMenuActivity = By.xpath("//div[@class='all-activity b-action-cell active']");
	public By linkDropDownCommunicationPopup = By.xpath(".//*[@id='communicationPopup']/a");
	public By blockDropDownMenuViews = By.xpath("//div[@data-activity='view']");
	public By blockDropDownMenuWinks = By.xpath("//div[@data-activity='wink']");
	public By blockDropDownMenuFriends = By.xpath("//div[@data-activity='favourite']");

	// Sub menu
	public By btnOpenFeed = By.xpath("//div[@id='newsFeedActivity']/a");
	public By btnOpenActivity = By.xpath("//a[@class='b-action-link']");
	public By btnOpenViews = By.xpath("//div[@data-activity='view']//a[@class='view-more btn green']");
	public By btnOpenWinks = By.xpath("//div[@data-activity='wink']//a[@class='view-more btn green']");
	public By btnOpenFriends = By.xpath("//div[@data-activity='favourite']//a[@class='view-more btn green']");
	public By btnSeeAll = By.xpath("//a[contains(text(),'see all')]");

	// Navigation menu bar
	public By btnNavFavorits = By.xpath("//a[@class='nav-item nav-favorites']");
	public By btnNavActivity = By.xpath("//a[@class='nav-item nav-activity']");
	public By btnNavFeed = By.xpath("//a[@class='nav-item nav-feed']");
	public By btnNavChat = By.xpath("//a[@class='nav-item nav-chat']");
	public By btnNavForum = By.xpath("//a[@class='nav-item nav-forum']");

	// Top Menu counter active
	public By linkTopFeedCounterActive = By.xpath("//a[@class='site-nav-item site-nav-newsfeed']//span[@class='counter active']");
	public By linkTopMyFriendsCounterActive = By.xpath("//a[@class='site-nav-item site-nav-favorites']//span[@class='counter active']");
	public By linkTopWinkedMeCounterActive = By.xpath("//a[@class='site-nav-item site-nav-winks']//span[@class='counter active']");
	public By linkTopBrowsedMeCounterActive = By.xpath("//a[@class='site-nav-item site-nav-views']//span[@class='counter active']");
}
